import React, { Component } from 'react'

export default class LifeCom extends Component {
  //组件挂载完毕的生命周期方法
  componentDidMount(){
    console.log('组件挂载完毕');
  }

  //组件将要卸载 2023-07-24 11:29:00   new Date();
  componentWillUnmount(){
    console.log('组件将要卸载..');
  }

  render() {
    return (
      <div>1-LifeCom</div>
    )
  }
}
